package com.huaban.analysis.jieba;

public class POSToken {
    public String word;
    public String flag; // 词性
    public int startOffset;
    public int endOffset;

    public POSToken(String word, String flag, int startOffset, int endOffset) {
        this.word = word;
        this.flag = flag;
        this.startOffset = startOffset;
        this.endOffset = endOffset;
    }

    @Override
    public String toString() {
        return "[" + word + ", " + flag + ", " + startOffset + ", " + endOffset + "]";
    }
}